﻿<UserControl x:Class="PetriNetSharp.View.TransitionView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Height="{DynamicResource TransitionHeight}" 
	Width="{DynamicResource TransitionWidth}" 
	FocusManager.IsFocusScope="True" Focusable="True"
	GotFocus="UserControl_GotFocus" 
	LostFocus="UserControl_LostFocus" >
	
	<Grid>
		
		<!-- Shape -->
		<Rectangle x:Name="rectangle" 
                   Width="Auto" 
                   Height="Auto" 
                   Fill="{DynamicResource TransitionBackgroundBrush}" 
                   Stroke="Black" 
                   StrokeThickness="0"
                   MouseDown="rectangle_MouseDown" />
		
		<!-- Name Text Box -->
		<TextBox x:Name="nameTextBox" 
                 Grid.Row="0" 
                 Grid.Column="0" 
                 Height="20"  
                 Width="60" 
                 Background="Transparent" 
                 Foreground="White" 
                 HorizontalContentAlignment="Center"
                 Keyboard.GotKeyboardFocus="nameTextBox_GotKeyboardFocus" />
	</Grid>
</UserControl>
